/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package SynchronizationLayer;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 *
 * @author Tomasz Nowak
 */
public class SynchronizationExecutor
{
	static private SynchronizationExecutor instance;

	public static SynchronizationExecutor getInstance()
	{
		if ( instance == null )
		{
			instance = new SynchronizationExecutor();
		}
		return instance;
	}

	private SynchronizationExecutor()
	{
		cachedThreadPool = Executors.newCachedThreadPool();
	}

	private ExecutorService cachedThreadPool;

	public ExecutorService getCachedThreadPool()
	{
		return cachedThreadPool;
	}
}
